<html>
<head>
<meta name="Generator" content="QQ 80342014" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
<meta name="Description" content="<?php echo $this->_var['description']; ?>" />

<title><?php echo $this->_var['page_title']; ?></title>

<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="<?php echo $this->_var['ecs_css_path']; ?>" rel="stylesheet" type="text/css" />

<?php echo $this->smarty_insert_scripts(array('files'=>'transport_jquery.js,common.js,user.js')); ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />

</head>
<body>
<?php echo $this->fetch('library/header.lbi'); ?>
 
<div class="y-content">
 
<?php if ($this->_var['action'] == 'default'): ?>
	<div class="y-heads">
		<div class="y-head">
			<span>司令羊</span>
		</div>
	</div>
	 
	<div class="y-layout">
		<div class="y-contai">
			<span>我养了<?php if ($this->_var['user_id'] > 0): ?><?php echo $this->_var['this_count']; ?><?php else: ?>---<?php endif; ?>只羊</span>
			<div class="y-dangyue">
			当月收益<?php if ($this->_var['user_id'] > 0): ?><?php echo $this->_var['this_money']; ?><?php else: ?>---<?php endif; ?>元
			</div>
		</div>
	</div>
	<div class="y-announ">
		<i class="y-laba"></i>
		<a href="<?php echo $this->_var['get_top_one']['url']; ?>"><?php echo sub_str($this->_var['get_top_one']['title'],20); ?></a>
	</div>
	<?php if ($this->_var['yang']): ?>
	<a href="<?php echo $this->_var['yang']['url']; ?>">
	<div class="y-project"> 
		<div class="y-state <?php if ($this->_var['yang']['state'] > 1): ?>y-state1 <?php endif; ?>">
			<?php echo $this->_var['yang']['state_name']; ?>
		</div>
	 
		<div class="y-buy">
		<i class="y-yang"></i>
		<span><?php echo $this->_var['yang']['sheep_name']; ?>&nbsp;&nbsp;第<?php echo $this->_var['yang']['qishu']; ?>期</span>
		</div>
		   <div class="y-buylist">
				<div class="y-buylist-a">
					<div>预期年分红</div>
					<div class="y-subnum"><?php echo $this->_var['yang']['bonus']; ?>%</div>
				</div>
				<div class="y-buylist-a">
					<div>每只/元</div>
					<div class="y-subnum"><?php echo $this->_var['yang']['price']; ?></div>
				</div>
				<div class="y-buylist-a y-buylist-b">
					<div>期限</div>
					<div class="y-subnum1"><?php echo $this->_var['yang']['cycle']; ?>个月</div>
				</div>
				<?php if ($this->_var['yang']['state'] == 1): ?>
					<div class="y-circ y-circ-border">
						<div class="y-rate"><?php echo $this->_var['yang']['state_yue']; ?></div>
						<div><?php echo $this->_var['yang']['state_shi']; ?></div>
					</div>
				<?php else: ?>
					<div class="y-circ  y-circ-back ">
						<canvas id="demo" class="canvas"  ></canvas>
					</div>
				<?php endif; ?>
            </div>
			<div class="clear"></div>
	</div>
 </a>
	<?php if ($this->_var['yang']['state'] > 1): ?>
	 <script type="text/javascript" src="themes/view/js/waterbubble.js"></script>
		<script type="text/javascript">
		var w = f_size * 2.2;
		var h = f_size * 2.2; 
		$('#demo').css('width',w);
		$('#demo').css('height',h);
		$('#demo').waterbubble({waterColor: 'rgba(125,215,58,1)',txt: '<?php echo $this->_var['yang']['solds']; ?>',data:'<?php echo $this->_var['yang']['data']; ?>'});
		</script>
	<?php endif; ?>
<?php endif; ?>	

<?php echo $this->fetch('library/index_navigation.lbi'); ?>

<?php endif; ?>



<?php if ($this->_var['action'] == 'money_index'): ?>
<?php echo $this->fetch('library/tab.lbi'); ?>
	<div id="y-back">
		<div class="y-fh">
			<div class="y-byfh">本月分红 (元)</div>
			<div class="y-color"><?php echo $this->_var['this_money']; ?></div>
			<div class="y-ljfh">累计分红（<span><?php if ($this->_var['leiji_money']): ?><?php echo $this->_var['leiji_money']; ?><?php else: ?>0<?php endif; ?></span>元）</div>
		</div>
		<div class="y-opacity"> 
				<div class="y-status">
					<div class="y-syb">青山羊币</div>
					<div><?php echo $this->_var['info']['user_money']; ?>元</div > 
				</div> 
				<div class="y-xian"></div> 
				<div class="y-status">
					<div class="y-syb">待返羊款</div>
					<div><?php echo $this->_var['yangkuan']; ?>元</div > 
				</div>
				<div class="y-xian"></div> 
				<div class="y-status">
					<div class="y-syb">待返分紅</div>
					<div><?php echo $this->_var['wei_this_money']; ?>元</div > 
				</div>
			</div>
			<div class="clear"></div>
		</div>
		<div class="y-menu-back">
			<div class="y-menu">
				<a href="user.php?act=elsepay"><div class="y-tx" style="border-right:1px solid #eaeaea;    background-color: #e16f6e;color: #fff;">充值</div></a>
				<!-- <a href="user.php?act=sheep_order_list"><div class="y-tx">购羊记录</div></a> -->
				<a href="user.php?act=tixian_money"><div class="y-tx" style="    background-color: #f1b463;
    color: #fff;">提现</div></a>
			</div>
			
		</div>
	   <a href="user.php?act=whole_money&change_type=1"><div class="y-cztxjl">充值提现记录</div></a>		
	   
	<div class="y-nav-list">
		<a href="user.php?act=whole_money">
			<div class="y-nav-list1"><i class="y-icon2"></i>全部青山羊币流水<i class="y-rightb"></i></div>
		</a>
		<a href="user.php?act=whole_money&change_type=51">
			<div class="y-nav-list1"><i class="y-icon2 y-icon3"></i>买羊理财支出<i class="y-rightb"></i></div>
		</a>
		<a href="user.php?act=whole_money&change_type=52">
			<div class="y-nav-list1"><i class="y-icon2 y-icon4"></i>羊只分红记录<i class="y-rightb"></i></div>
		</a>
		<a href="user.php?act=whole_money&change_type=53">
			<div class="y-nav-list1"><i class="y-icon2 y-icon5"></i>到期返还购羊款<i class="y-rightb"></i></div>
		</a>
		<a href="user.php?act=whole_money&change_type=99">
			<div class="y-nav-list1"><i class="y-icon2 y-icon6"></i>其他消费支出<i class="y-rightb"></i></div>
		</a>
		<a href="user.php?act=whole_money&change_type=50">
			<div class="y-nav-list1"><i class="y-icon2 y-icon7"></i>推广佣金收入<i class="y-rightb"></i></div>
		</a>
		<a href="user.php?act=whole_money&change_type=54">
			<div class="y-nav-list1"><i class="y-icon2 y-icon8"></i>参与活动支出<i class="y-rightb"></i></div>
		</a>
	

	</div>

<?php endif; ?>



<?php if ($this->_var['action'] == 'shepherd'): ?>
<?php echo $this->fetch('library/tab.lbi'); ?>
<div class="y-conter">
	<div class="y-qb-back"> 
		<a href="user.php?act=money_index"><div class="y-round">
			<i class="y-qianb"></i>
			<span>我的钱包</span>
		</div>
		</a>
		<ul class="y-fenhong">
			<li>
			<a href="">
				<span class="y-null"><?php if ($this->_var['this_money']): ?><?php echo $this->_var['this_money']; ?><?php else: ?>0<?php endif; ?>元</span>
				<span class="y-fenh">本月分红</span>
			</a>
			</li>
			<li style="padding:0rem 0.05rem">
			<a href="">
				<span class="y-null"><?php echo $this->_var['info']['user_money']; ?></span>
				<span class="y-fenh">青山羊币</span>
			</a>
			</li>
			<li>
			<a href="">
				<span class="y-null"><?php if ($this->_var['yangkuan']): ?><?php echo $this->_var['yangkuan']; ?><?php else: ?>0<?php endif; ?>元</span>
				<span class="y-fenh">待返羊款</span>
			</a>
			</li>
		</ul>
		<div class="clear"></div>
	</div>
	<div class="y-menu-back">
			<div class="y-menu">
				<a href="user.php?act=sheep_order_list"><div class="y-zero">羊圈<?php echo $this->_var['this_count']; ?>只羊</div></a>
				<a href="user.php?act=buy_record"><div class="y-record">购羊记录</div></a>
			</div>
			
	</div>
	<div class="y-nav-list y-navs-list">
		<a href="user.php?act=options"><div class="y-nav-list1"><i class="y-icon2 y-icon11"></i>设置<i class="y-rightb"></i></div></a>
		<a href="user.php?act=mybankcard"><div class="y-nav-list1"><i class="y-icon2 y-icon3 y-icon12"></i>我的银行卡<i class="y-rightb"></i></div></a>
	</div>
	<div class="y-nav-list y-navs-list">
		<a href="user.php?act=mycontract"><div class="y-nav-list1"><i class="y-icon2 y-icon13"></i>保单与合同<i class="y-rightb"></i></div></a>
		<a href="user.php?act=huodong"><div class="y-nav-list1"><i class="y-icon2 y-icon3 y-icon14"></i>活动专区记录<i class="y-rightb"></i></div></a>
		<a href="user.php?act=mymessage"><div class="y-nav-list1"><i class="y-icon2 y-icon4 y-icon15"></i>我的消息<i class="y-rightb"></i></div></a>
		<a href="user.php?act=mykefu"><div class="y-nav-list1"><i class="y-icon2 y-icon5 y-icon16"></i>客服热线<i class="y-rightb"></i></div></a>
	</div>
	<div class="y-nav-list  y-navs-list1">
		<a href="user.php?act=procommission"><div class="y-nav-list1"><i class="y-icon2 y-icon17"></i>推广佣金<i class="y-rightb"></i></div></a>
		<a href=""><div class="y-nav-list1"><i class="y-icon2 y-icon3 y-icon18"></i>优惠劵<i class="y-rightb"></i></div></a>
	</div>
 
</div>
	



<?php endif; ?>





<?php if ($this->_var['action'] == 'huodong'): ?>

<link href="themes/view/css/user.css" rel="stylesheet" type="text/css" />

<article style="display: block;" ui-view="" data-current-cache="false" class="pagecontent">
<section class="" avalonctrl="activityrecord">
    <div class="text-menu" style="border-bottom: none;">
        <dl class="infl-nav">
            <!--<dd class="w28" ms-class="{{type == 0 ? 'cur' : ''}}"><a href="#!/activityrecord" class="listitem active">全部</a></dd>-->
            <dd class="w28 <?php if ($this->_var['type'] == 1): ?>cur <?php endif; ?>"><a href="user.php?act=huodong&type=1" class="listitem">一元抢羊</a></dd>
            <dd class="w28 <?php if ($this->_var['type'] == 2): ?>cur <?php endif; ?>"><a href="user.php?act=huodong&type=2" class="listitem">我想要</a></dd>
            <dd class="w28 <?php if ($this->_var['type'] == 3): ?>cur <?php endif; ?>"><a href="user.php?act=huodong&type=3" class="listitem">我挺他</a></dd>
            <dt style="width: 15%;"><a href="javascript:;" style="padding-top: 20px;"><em class="upcorw"></em></a></dt>
        </dl>
        <ul class="other-tab-list" id="J_OtherTab">
            <li><a class="w28 <?php if ($this->_var['type'] == 3): ?>cur <?php endif; ?>" href="user.php?act=huodong&type=4">我想送人</a></li>
        </ul>
        <div class="mask" id="J_Mask"></div>
    </div> 
    <div class="activity-zone-record" id="wk-content">
        <div class="record-list" >
          
        </div>
    </div>
    
</section>
</article>
<script>
$('dt a').click(function(){
	$('#J_OtherTab').toggle();
	$('#J_Mask').toggle();
});
$('#J_Mask').click(function(){
	$('#J_OtherTab').toggle();
	$('#J_Mask').toggle();
});
</script>
 <?php if ($this->_var['count'] > 0): ?>
<div class="wk-height"></div>
<link href="themes/view/css/dropload.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="themes/view/js/dropload.min.js"></script>
<script type="text/javascript" src="themes/view/js/dropload.js"></script>
<script>
var types = <?php echo $this->_var['type']; ?>;
var size = 10;
var page = 1;
var url = "user.php?act=ajax_huodong";
var user = {
	page:page,
	size:size,
	types:types,
}; 
ajax_list(user,url,'GET','record-list');
</script> 

<?php else: ?>
	<div class="no-sheepfold" style="display: none;">
		<div class="no-sf-title">主人你目前没有相关信息哦</div>
	</div>

<?php endif; ?>




<?php endif; ?>




<?php if ($this->_var['action'] == 'sheep_order_list'): ?>
<?php if ($this->_var['count'] > 0): ?>
<link href="themes/view/css/user.css" rel="stylesheet" type="text/css" />
<article class="pagecontent" style="display: block;" ui-view="" data-current-cache="false"><section class="home-box" avalonctrl="sheepfold">

	<div class="sheepfold" style="display: block;"  id="wk-content">
		<ul class="sheepfold-list y-box" style="    background: #fff;width:auto">
	
			
		</ul>
	</div>
</section></article>
<div class="wk-height"></div>
<link href="themes/view/css/dropload.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="themes/view/js/dropload.min.js"></script>
<script type="text/javascript" src="themes/view/js/dropload.js"></script>
<script>
var size = 10;
var page = 1;
var url = "user.php?act=ajax_sheep_order_list";
var user = {
	page:page,
	size:size,
}; 
ajax_list(user,url);
</script>
<?php else: ?>
	<div class="no-sheepfold" style="display: none;">
		<div class="no-sf-title">主人你目前没有羊只哦</div>
	</div>
<?php endif; ?>
<?php endif; ?>




<?php if ($this->_var['action'] == 'buy_record'): ?>
<link href="themes/view/css/user.css" rel="stylesheet" type="text/css" />
<article class="pagecontent" style="display: block;" ui-view="" data-current-cache="false">
<section class="" avalonctrl="buy-record">
    <div class="buy-record" id="wk-content">
        <div class="un-buy-record-list y-box">
         
        </div>
    </div>
    
</section>
</article>

<div class="wk-height"></div>
<link href="themes/view/css/dropload.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="themes/view/js/dropload.min.js"></script>
<script type="text/javascript" src="themes/view/js/dropload.js"></script>
<script>
var size = 10;
var page = 1;
var url = "user.php?act=ajaxbuy_record";
var user = {
	page:page,
	size:size,
}; 
ajax_list(user,url);
</script>

<?php endif; ?>





<?php if ($this->_var['action'] == 'buy_recordinfo'): ?>
<?php echo $this->fetch('library/tab.lbi'); ?>
<link href="themes/view/css/user.css" rel="stylesheet" type="text/css" />
<?php echo $this->fetch('library/buy_recordinfo.lbi'); ?>

<?php endif; ?>












<?php if ($this->_var['action'] == 'whole_money'): ?>
<?php echo $this->fetch('library/tab.lbi'); ?>
<?php if ($this->_var['count'] > 0): ?>
<link href="themes/view/css/user.css" rel="stylesheet" type="text/css" />
<article class="pagecontent" style="display: block;" ui-view="" data-current-cache="false"><section class="home-box" avalonctrl="record">
<div id="wk-content">
<div class="  wk-bor-none sheep-record">
	<ul class="record-list y-box">
    </ul>
</div>
</div>
<div class="wk-height"></div>
</section>
</article>
<link href="themes/view/css/dropload.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="themes/view/js/dropload.min.js"></script>
<script type="text/javascript" src="themes/view/js/dropload.js"></script>
<script>
var size = 10;
var page = 1;
var change_type = <?php echo $this->_var['change_type']; ?>;
var url = "user.php?act=ajax_money";
var user = {
	page:page,
	size:size,
	change_type:change_type,
}; 
ajax_list(user,url);
</script>
<?php else: ?>
	<div class="no-goat">
		<div class="goat-img"></div>
		<div class="orange no-goat-tips">暂无数据！</div>
	</div>
<?php endif; ?>


<?php endif; ?>





<?php if ($this->_var['action'] == 'tixian_money'): ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'transport_jquery.js')); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'jquery.json.js')); ?>
	<?php echo $this->smarty_insert_scripts(array('files'=>'sms.js')); ?>
<?php echo $this->fetch('library/tab.lbi'); ?>
<link href="themes/view/css/user.css" rel="stylesheet" type="text/css" />
<?php echo $this->fetch('library/tixian_money.lbi'); ?>

<?php endif; ?>






<?php if ($this->_var['action'] == 'more'): ?>
<link href="themes/view/css/user.css" rel="stylesheet" type="text/css" />
<?php echo $this->fetch('library/more.lbi'); ?>

 

<?php endif; ?>




<?php if ($this->_var['action'] == 'elsepay'): ?>
<link href="themes/view/css/user.css" rel="stylesheet" type="text/css" />
<?php echo $this->fetch('library/elsepay.lbi'); ?>
<?php endif; ?>






<?php if ($this->_var['action'] == 'procommission'): ?>
<link href="themes/view/css/user.css" rel="stylesheet" type="text/css" />
<article class="pagecontent" style="display: block;" ui-view="" data-current-cache="false">
	<section class="" avalonctrl="procommission">
		<dl class="infl-nav">
			<dd class="w50 <?php if ($this->_var['type'] == 'zc'): ?> cur<?php endif; ?>"><a href="user.php?act=procommission&type=zc">带来注册</a></dd>
			<dd class="w50 <?php if ($this->_var['type'] == 'gm'): ?> cur<?php endif; ?>"><a href="user.php?act=procommission&type=gm">带来购买</a></dd>
		</dl>

	<?php echo $this->fetch('library/procommission.lbi'); ?>
 
	</section>
</article>
<?php endif; ?>




<?php if ($this->_var['action'] == 'mykefu'): ?>
<link href="themes/view/css/user.css" rel="stylesheet" type="text/css" />
 <article class="pagecontent" style="display: block;" ui-view="" data-current-cache="false">
<section class="" avalonctrl="mykefu">
	<div class="options">
		<div class="nav-list">
			<div class="listitem"><div class=""><i class="farm-icon icon-options-66"></i>客服：<?php echo $this->_var['kfname']; ?> </div></div>
			<div class="listitem"><div class=""><i class="farm-icon icon-options-55"></i>电话：<a href="tel:<?php echo $this->_var['service_phone']; ?>"><?php echo $this->_var['service_phone']; ?></a> </div></div>
			<div class="listitem"><div class=""><i class="farm-icon icon-options-44"></i>手机：<a href="tel:<?php echo $this->_var['kfmobile']; ?>"><?php echo $this->_var['kfmobile']; ?> </a></div></div>
			 <?php $_from = $this->_var['qq']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'im');if (count($_from)):
    foreach ($_from AS $this->_var['im']):
?>
      <?php if ($this->_var['im']): ?>
	  	<div class="listitem"><div class=""><i class="farm-icon icon-mine-30"></i>QQ：  <a href="http://wpa.qq.com/msgrd?V=1&amp;Uin=<?php echo $this->_var['im']; ?>&amp;Site=<?php echo $this->_var['shop_name']; ?>&amp;Menu=yes" target="_blank"><?php echo $this->_var['im']; ?></a></div></div>
      <?php endif; ?>
      <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> 
			<div class="listitem"><div class="ms-click-active"><i class="farm-icon icon-options-33"></i>微信：<?php echo $this->_var['weixin']; ?></div></div>
			<div class="listitem1">
				<div class="quiz">
					<h3>我要评价</h3>
					<div class="quiz_content">
						  <form action="user.php" method="post" enctype="multipart/form-data" name="formMsg" onSubmit="return submitMsg()">
							<input name="order_id" type="hidden" value="<?php echo $this->_var['order_info']['order_id']; ?>" class="inputBg" />
							<div class="goods-comm">
								<div class="goods-comm-stars">
									<span class="star_l">满意度：</span>
									<div class="star-cli">
										<ul class="xingxingBox">
											<li class="xingxing1 cur"></li>
											<li class="xingxing2 cur"></li>
											<li class="xingxing3 cur"></li>
											<li class="xingxing4 cur"></li>
											<li class="xingxing5 cur"></li>
										</ul>
									</div>
								</div>
							</div>
							<input type="hidden" id="leixing" name="leixing" value="5" />
							<input type="hidden" name="msg_type" name="msg_type" value="0">
							<div class="l_text" style="height: 2.1rem;"> 
								<textarea name="msg_title"  style="height: 2rem;" required="true" class="text wk-height" placeholder="<?php echo $this->_var['lang']['message_title']; ?>"></textarea>
								
							</div>
							<div class="l_text">
								<textarea name="msg_content" required="true" class="text" placeholder="您评价，我进步，请给我的服务打个分吧！（不超过200个字~）"></textarea>
								
							</div>
							<input type="hidden" name="act" value="act_add_message" />
						 
							<button class="pay-btn"   >提交</button>
						</form>
					</div>
				</div>
			</div>

		</div>
	</div>
</section>
</article>
<div class="wk-height"></div>
<?php endif; ?>









<?php if ($this->_var['action'] == 'mymessage'): ?>
<link href="themes/view/css/user.css" rel="stylesheet" type="text/css" />

<article class="pagecontent" style="display: block;" ui-view="" data-current-cache="false"><section class="" avalonctrl="mysheepinfo">
    <dl class="infl-nav">
        <dd class="w50 cur"><a href="javascript:;">系统信息</a></dd>
        <dd class=" w50"><a href="user.php?act=mysheepinfo">羊只信息</a></dd>
    </dl>
    
    
	
	

<div id="wk-content">
	<div class="y-new" style="display:block"></div>
</div>

<div class="wk-height"></div>
<link href="themes/view/css/dropload.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="themes/view/js/dropload.min.js"></script>
<script>
$(function(){
   	  // 每页展示4个
		var cat_id = 8;
		var size = 10;
		var page = 1;
 
    // dropload
    $('#wk-content').dropload({
        scrollArea : window,
        loadDownFn : function(me){ 
			var user = {
				id:cat_id,
				page:page,
				size:size,
			}; 
            $.ajax({
                type: 'GET',
				data:user,
				url: 'article_cat.php?act=ajaxlist', 
                dataType: 'json',
                success: function(result){ 
				 
                    var str = ''; 
                    page = page + 1;	  /* 下一页  */
					lengths = result.lengths; /* 数组的长度 */
					lists = result.list;
					for(var i = 0; i < lengths; i++){ 
						str +=	'<a href="'+ lists[i].url +'">'
							+'<div class="y-news">'
							+	'<div class="y-images">'
							+		'<img src="'+ lists[i].file_url +'" />'
							+	'</div>'
							+	'<div class="y-text">'
							+		'<p>'+ lists[i].short_title +'</p>'
							+		'<div class="y-new-con">'+ lists[i].description +'</div>'
							+	'</div>'
						+	'</div>'
						+' </a>'; 
                    }
					
					if(!lengths){
						// 锁定
						me.lock();
						// 无数据
						me.noData();
					}
                    // 为了测试，延迟1秒加载
                    setTimeout(function(){
                        $('.y-new').append(str);
                        // 每次数据加载完，必须重置
                        me.resetload();
                    },1000);
					
					var _html = $('#wk-content').html();
					if(!_html){
						str = '<div class="no-goat"> <div class="goat-img"></div> <div class="orange no-goat-tips">您好！您目前没有系统信息！</div> </div>';
						$('.y-new').append(str);
					}
                },
                error: function(xhr, type){
                    
                    // 即使加载出错，也得重置
                    me.resetload();
                }
            });
        }
    });
});

</script>	
</section>
</article>


<?php endif; ?>





<?php if ($this->_var['action'] == 'mysheepinfo'): ?>
<link href="themes/view/css/user.css" rel="stylesheet" type="text/css" />

<article class="pagecontent" style="display: block;" ui-view="" data-current-cache="false"><section class="" avalonctrl="mysheepinfo">
    <dl class="infl-nav">
        <dd class="w50"><a href="user.php?act=mymessage">系统信息</a></dd>
        <dd class="cur w50"><a href="javascript:;">羊只信息</a></dd>
    </dl>
    
    <div class="no-goat">
        <div class="goat-img"></div>
        <div class="orange no-goat-tips">您好！您目前没有羊只信息！</div>
    </div>
</section></article>


<?php endif; ?>



<?php if ($this->_var['action'] == 'clientpage'): ?>
<link href="themes/view/css/clientpage.css" rel="stylesheet" type="text/css" />
<?php echo $this->fetch('library/clientpage.lbi'); ?>
<div class="wk-height"></div>
<div class="wk-height"></div>
<div class="wk-height"></div>
<?php endif; ?>




<?php if ($this->_var['action'] == 'mycontract'): ?>
<link href="themes/view/css/user.css" rel="stylesheet" type="text/css" />
<article class="pagecontent" style="display: block;" ui-view="" data-current-cache="false"><section class="" avalonctrl="mysheepinfo">
    <dl class="infl-nav">
        <dd class="w50"><a href="user.php?act=userbaodan">羊只保单</a></dd>
        <dd class="cur w50"><a href="javascript:;">联养合同</a></dd>
    </dl>
	<?php if ($this->_var['this_count'] > 0): ?>
	<div class="mycontract" id="wk-content">
		<div class="nav-list">
			
			<a class="listitem">
				<p class="list-tit" style="margin-top:13px;">您有 <?php echo $this->_var['this_count']; ?> 份合同（含已完结合同）</p>
			</a>
		</div>
		<div class="nav-list y-box">
			
			
		</div>
			<div class="wk-height"></div>
	</div>
 
	
		<link href="themes/view/css/dropload.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="themes/view/js/dropload.min.js"></script>
		<script type="text/javascript" src="themes/view/js/dropload.js"></script>
		<script>
		var size = 10;
		var page = 1;
		var url = "user.php?act=ajaxmycontract";
		var user = {
			page:page,
			size:size,
		}; 
		ajax_list(user,url);
		</script>
	<?php else: ?>
		<div class="no-goat">
			<div class="goat-img"></div>
			<div class="orange no-goat-tips">您好！您目前没有联养合同！</div>
		</div>
	<?php endif; ?>
   
</section>
</article>

<?php endif; ?>



<?php if ($this->_var['action'] == 'userbaodan'): ?>
<link href="themes/view/css/user.css" rel="stylesheet" type="text/css" />

<article class="pagecontent" style="display: block;" ui-view="" data-current-cache="false"><section class="" avalonctrl="mysheepinfo">
    <dl class="infl-nav">
        <dd class="w50"><a href="javascript:;">羊只保单</a></dd>
        <dd class="cur w50"><a href="user.php?act=mycontract">联养合同</a></dd>
    </dl>
    
    <div class="no-goat">
        <div class="goat-img"></div>
        <div class="orange no-goat-tips">您好！您目前没有羊只保单！</div>
    </div>
</section></article>

<?php endif; ?>





<?php if ($this->_var['action'] == 'mycontractinfo'): ?>
<link href="themes/view/css/user.css" rel="stylesheet" type="text/css" />
 
<?php echo $this->fetch('library/baodaninfo.lbi'); ?>
<?php endif; ?>










</div>
<?php echo $this->fetch('library/foot.lbi'); ?>

</div>
</body>
</html>